package com.ParkingManager.app.service;

import java.util.HashMap;
import java.util.List;
import java.util.Objects;

import org.apache.ibatis.annotations.Param;

import com.ParkingManager.app.bean.User;

public interface UserService {
	
	public List<HashMap> getUser();
	// 登录
	public int login(User user);
	
	//插入
	public boolean insertUser(String userName,String password,int userType, String parkingId);
	
	//更新
	public boolean updateUser(String userName, String parkingId);

	//删除（根据用户名）
	public boolean deleteUser(String userName);
	
	//统计
	public int getCountUser();
	
	//搜索by停车场名
	public List<HashMap<String,Object>> searchByPname(String pName);
		
	//搜索by停车场id
	public List<HashMap<String,Object>> searchByPid(int pid);
		
	//搜索by门卫
	public List<HashMap<String,Object>> searchByUser(String uName); 
}
